/*
 * mhtxtmedia.h
 *
 *  Created on: 2010-8-26
 *      Author: angelstone
 */

#pragma once

#include "addon/mhmediaaddon.h"

namespace mediahouse {
	class CMHContext;
	class CMHMedia;

	class CMHTxtMediaAddon: public CMHMediaAddon {
	public:
		virtual int CanHandleMedia(CMHContext * pContext, hiberlite::bean_ptr<
				mediahouse::CMHMedia> & media, void * cookies);
		virtual int HandleMedia(CMHContext * pContext, hiberlite::bean_ptr<
				mediahouse::CMHMedia> & media, void * cookies);

	protected:
		virtual wxString PrepareCategory(CMHContext * pContext,
				const wxString & base_category, const wxString & base_loc,
				const wxString & loc);
	};
}
